From 2d14372142c389f667ba447a0e7f5ba620722742 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 13 Jun 2022 05:30:08 +0200 Subject: [PATCH] reftests: Add an inscription xalign RTL test This checks mainly that we do the right thing wrt PangoAlignment weirdness. 0.25 and 0.75 are set to 0.0 and 1.0 currently because of Pango limitations (and no desire to manually move lines). But if that were to be fixed, both the ref and the test should update in the same way and things should just keep working. --- .../reftests/inscription-xalign-rtl.ref.ui | 52 ++++++++++++++++++ testsuite/reftests/inscription-xalign-rtl.ui | 54 +++++++++++++++++++ testsuite/reftests/meson.build | 2 + 3 files changed, 108 insertions(+) create mode 100644 testsuite/reftests/inscription-xalign-rtl.ref.ui create mode 100644 testsuite/reftests/inscription-xalign-rtl.ui diff --git a/testsuite/reftests/inscription-xalign-rtl.ref.ui b/testsuite/reftests/inscription-xalign-rtl.ref.ui new file mode 100644 index 0000000000..5d31f893ba --- /dev/null +++ b/testsuite/reftests/inscription-xalign-rtl.ref.ui @@ -0,0 +1,52 @@ + + + + 200 + 0 + + + vertical + + + עִברִית +English + 2 + 0.0 + + + + + עִברִית +English + 2 + 0.25 + + + + + עִברִית +English + 2 + 0.5 + + + + + עִברִית +English + 2 + 0.75 + + + + + עִברִית +English + 2 + 1.0 + + + + + + diff --git a/testsuite/reftests/inscription-xalign-rtl.ui b/testsuite/reftests/inscription-xalign-rtl.ui new file mode 100644 index 0000000000..a8e469f4c8 --- /dev/null +++ b/testsuite/reftests/inscription-xalign-rtl.ui @@ -0,0 +1,54 @@ + + + + 200 + 0 + + + vertical + + + + + עִברִית +English + 2 + 0.0 + + + + + עִברִית +English + 2 + 0.25 + + + + + עִברִית +English + 2 + 0.5 + + + + + עִברִית +English + 2 + 0.75 + + + + + עִברִית +English + 2 + 1.0 + + + + + + diff --git a/testsuite/reftests/meson.build b/testsuite/reftests/meson.build index 068f98b159..25fb13ab0d 100644 --- a/testsuite/reftests/meson.build +++ b/testsuite/reftests/meson.build @@ -377,6 +377,8 @@ testdata = [ 'inscription-overflow-yalign.ui', 'inscription-xalign.ref.ui', 'inscription-xalign.ui', + 'inscription-xalign-rtl.ref.ui', + 'inscription-xalign-rtl.ui', 'label-attribute-preference.css', 'label-attribute-preference.ref.ui', 'label-attribute-preference.ui', -- 2.30.2